package net.oschina.simpleplus.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import net.oschina.simpleplus.entity.User;

public interface UserMapper {

	@Select("select * from user where email = #{email}")
	public User selectUserByEmail(String email);

	@Insert("insert into user (email, passwd, salt) values(#{email},#{passwd},#{salt})")
	@Options(useGeneratedKeys=true, keyColumn="id")
	public void saveUser(User user);
}
